chore(deps): update dependency wrangler to v4 #555
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more here.
This PR contains the following updates:
3.114.14
->4.38.0
Release Notes
cloudflare/workers-sdk (wrangler)
v4.38.0
Compare Source
Minor Changes
#10654
a4e2439
Thanks @laplab! - Switch to WRANGLER_R2_SQL_AUTH_TOKEN env variable for R2 SQL secret. Update the response format for R2 SQL#10676
f76da43
Thanks @penalosa! - Supportctx.exports
in wrangler types#10651
6caf938
Thanks @edevil! - Added new attribute "allowed_sender_addresses" to send email binding.Patch Changes
#10674
1cc258e
Thanks @penalosa! - Fix remote/local display for KV/D1/R2 & Browser bindings#10678
b30263e
Thanks @penalosa! - Remove dummy auth from SDK setup#10678
b30263e
Thanks @penalosa! - AddWRANGLER_TRACE_ID
environment variable to support internal testing#10561
769ffb1
Thanks @danielrs! - Do not show subdomain status mismatch warnings on first deploy.Updated dependencies [
b59e3e1
,e9b0c66
,6caf938
,88132bc
]:v4.37.1
Compare Source
Patch Changes
#10658
3029b9a
Thanks @1000hz! - Fixed an issue with service tags not being applied properly to Workers when the Wrangler configuration file did not include a top-levelname
property.#10657
31ec996
Thanks @penalosa! - Disable remote bindings with the--local
flagUpdated dependencies [
783afeb
]:v4.37.0
Compare Source
Minor Changes
#10546
d53a0bc
Thanks @1000hz! - On deploy or version upload, Workers with multiple environments are tagged with metadata that groups them together in the Cloudflare Dashboard.#10596
735785e
Thanks @penalosa! - Add Miniflare & Wrangler support for unbound Durable Objects#10622
15c34e2
Thanks @nagraham! - Modify R2 Data Catalog compaction commands to enable/disable for Catalog (remove table/namespace args), and require Cloudflare API token on enable.Patch Changes
735785e
]:v4.36.0
Compare Source
Minor Changes
#10604
135e066
Thanks @penalosa! - Enable Remote Bindings without the need for the--x-remote-bindings
flag#10558
30f558e
Thanks @laplab! - Add commands to send queries and manage R2 SQL product.#10574
d8860ac
Thanks @efalcao! - Add support for VPC services CRUD viawrangler vpc service
#10119
336a75d
Thanks @dxh9845! - Add support for dynamically loading 'external' Miniflare plugins for unsafe Worker bindings (developed outside of the workers-sdk repo)Patch Changes
#10212
0837a8d
Thanks @jamesopstad! - AddpreserveOriginalMain
option tounstable_readConfig
. This will pass the originalmain
value through, without converting it to an absolute path.#10541
da24079
Thanks @qjex! - stableratelimit
bindingRate Limiting in Workers is now generally available,
ratelimit
can be removed from unsafe bindings.#10479
ffa2600
Thanks @nagraham! - feat: Add wrangler commands for the R2 Data Catalog compaction feature#9955
51553ef
Thanks @penalosa! - Integrate the Cloudflare SDK into Wrangler (internal refactor)Updated dependencies [
e2b838f
,336a75d
]:v4.35.0
Compare Source
Minor Changes
#10491
5cb806f
Thanks @zebp! - Add traces, OTEL destinations, and configurable persistence to observability settingsAdds a new
traces
field to theobservability
settings in your Worker configuration that configures the behavior of automatic tracing. Bothtraces
andlogs
support providing a list of OpenTelemetry compliantdestinations
where your logs/traces will be exported to as well as an implicitly-enabledpersist
option that controls whether or not logs/traces are persisted to the Cloudflare observability platform and viewable in the Cloudflare dashboard.Patch Changes
#10571
4e49d3e
Thanks @dario-piotrowicz! - add missing type forsend_email
'sexperimental_remote
field#10534
dceb550
Thanks @dario-piotrowicz! - updateunstable_convertConfigBindingsToStartWorkerBindings
to prioritize preview config valuesEnsure that if some bindings include preview values (e.g.
preview_database_id
for D1 bindings) those get used instead of the standard ones (since these are the ones that start worker should be using)#10552
3b78839
Thanks @vicb! - Bumpunenv
to 2.0.0-rc.21Updated dependencies [
dac302c
,3b78839
]:v4.34.0
Compare Source
Minor Changes
#10478
cc47b51
Thanks @danielrs! - Beta feature preview_urls is now disabled by default.This change makes preview_urls disabled by default when it's not provided, making
the feature opt-in instead of opt-out.
Patch Changes
#10489
6e8dd80
Thanks @WalshyDev! - Allow Wrangler to upload 100,000 assets inline with the newly increased Workers Paid limit.#10517
7211609
Thanks @edmundhung! - fix:wrangler vectorize list-vectors --json
now output valid json without an extra log line#10527
818ce22
Thanks @vicb! - Bumpunenv
to 2.0.0-rc.20The latest release include a fix for
node:tty
default export.See the changelog for full details.
#10519
5d69df4
Thanks @dario-piotrowicz! - Slightly improvewrangler init --from-dash
error message#10519
5d69df4
Thanks @dario-piotrowicz! - Internally refactor diffing andwrangler init --from-dash
logic#10533
c22acc6
Thanks @emily-shen! - If unset, containers.max_instances should default to 1 instead of 0.#10503
c0fad5f
Thanks @ichernetsky-cf! - Support setting container affinities#10515
c6a39f5
Thanks @emily-shen! - fix: script should be accepted as a positional arg in theversions upload
commandUpdated dependencies [
4cb3370
,818ce22
,cb22f5f
,a565291
]:v4.33.2
Compare Source
Patch Changes
#10401
3c15bbb
Thanks @dario-piotrowicz! - improve diff lines ordering in remote deploy config diffing logic#10520
dc81221
Thanks @emily-shen! - fix: wrangler deploy dry run should not require you to be logged inFixes a bug where if you had a container where the image was an image registry link, dry run would require you to be logged in.
Also fixes a bug where container deployments were not respecting
account_id
set in Wrangler config.#10393
4492eb0
Thanks @dario-piotrowicz! - Use resolved local config for remote deploy config diffing logicUpdated dependencies [
31ecfeb
,f656d1a
,22c8ae6
,bd21fc5
,38bdb78
,4851955
]:v4.33.1
Compare Source
Patch Changes
#10427
85be2b6
Thanks @dario-piotrowicz! - Simplify ENOENT debug logs for.env
filesUpdated dependencies [
76d9aa2
,452ad0b
,7c339ae
]:v4.33.0
Compare Source
Minor Changes
e81c2cf
Thanks @penalosa! - Support automatically updating the user's config file with newly created resourcesPatch Changes
#10424
c4fd176
Thanks @penalosa! - Remove the--experimental-json-config
/-j
flag, which is no longer required.#10432
19e2aab
Thanks @anonrig! - Remove "node:tls" polyfill#10424
c4fd176
Thanks @penalosa! - Expose global flags fromexperimental_getWranglerCommands()
Updated dependencies [
19e2aab
]:v4.32.0
Compare Source
Minor Changes
#10354
da40571
Thanks @edmundhung! - Enable cross-process communication forwrangler dev
with multiple config filesWorkers running in separate
wrangler dev
sessions can now communicate with each other regardless of whether you are running with single or multiple config files.Check out the Developing with multiple Workers guide to learn more about the different approaches and when to use each one.
#10012
4728c68
Thanks @penalosa! - Support unsafe dynamic worker loading bindingsPatch Changes
#10245
d304055
Thanks @edmundhung! - Migrate wrangler dev to use Miniflare dev registry implementationUpdated
wrangler dev
to use a shared dev registry implementation that now powers both the Cloudflare Vite plugin and Wrangler. This internal refactoring has no user-facing changes but consolidates registry logic for better consistency across tools.#10407
f534c0d
Thanks @emily-shen! - defaultcontainers.rollout_active_grace_period
to 0#10425
0a96e69
Thanks @dario-piotrowicz! - Fix debugging logs not including headers for CF API requests and responsesFix the fact that
wrangler
, when run with theWRANGLER_LOG=DEBUG
andWRANGLER_LOG_SANITIZE=false
environment variables, displays{}
instead of the actual headers for requests and responses for CF API fetches#10337
f9f7519
Thanks @emily-shen! - containers:rollout_step_percentage
now also accepts an array of numbers. Previously it accepted a single number, and each rollout step would target the same percentage of instances. Now users can customise percentages for each step.rollout_step_percentage
also now defaults to[10,100]
(previously25
), which should make rollouts progress slightly faster.You can also use
wrangler deploy --containers-rollout=immediate
to override rollout settings in Wrangler configuration and update all instances in one step. Note this doesn't overriderollout_active_grace_period
if configured.Updated dependencies [
4728c68
]:v4.31.0
Compare Source
Minor Changes
#10314
9b09751
Thanks @dario-piotrowicz! - Show possible local vs. dashboard diff information on deploysWhen re-deploying a Worker using
wrangler deploy
, if the configuration has been modified in the Cloudflare dashboard, the local configuration will overwrite the remote one. This can lead to unexpected results for users. To address this, currentlywrangler deploy
warns users about potential configuration overrides (without presenting them) and prompts them to confirm whether they want to proceed.The changes here improve the above flow in the following way:
wrangler deploy
now displays a git-like diff showing the differences between the dashboard and local configurations. This allows users to review and understand the impact of their changes before confirming the deployment.#10334
cadf19a
Thanks @jonesphillip! - Added queues subscription command to Wrangler including create, update, delete, get, listPatch Changes
#10374
20520fa
Thanks @edmundhung! - Simplify debug package resolution with nodejs_compatA patched version of
debug
was previously introduced that resolved the package to a custom implementation. However, this caused issues due to CJS/ESM interop problems. We now resolve thedebug
package to use the Node.js implementation instead.#10249
875197a
Thanks @penalosa! - Support JSRPC for remote bindings. This unlocks:Updated dependencies [
565c3a3
,ddadb93
,20520fa
,875197a
]:v4.30.0
Compare Source
Minor Changes
76a6701
Thanks @garvit-gupta! - feat: Add Wrangler command for Vectorize list-vectors operationPatch Changes
#10217
979984b
Thanks @veggiedefender! - Increase the maxBuffer size for capnp uploads#10356
80e964c
Thanks @WillTaylorDev! - fix: Update regex for valid branch name to remove 61 char length requirement, allowing for longer branch names to be specified for preview aliases.#10289
a5a1426
Thanks @emily-shen! - Cleanup container images created during local dev if no changes have been made.We now untag old images that were created by Wrangler/Vite if we find that the image content and configuration is unchanged, so that we don't keep accumulating image tags.
#10315
0c04da9
Thanks @emily-shen! - Addrollout_active_grace_period
option to containers configuration.This allows users to configure how long an active container should keep running for during a rollout, before the upgrade is applied.
#10321
b524a6f
Thanks @emily-shen! - print prettier errors during container deployment#10253
eb32a3a
Thanks @emily-shen! - fix redeploying container apps when previous deploy failed or container (but not image) was deleted.Previously this failed with
No changes detected but no previous image found
as we assumed there would be a previous deployment when an image exists in the registry.#9990
4288a61
Thanks @penalosa! - Fix startup profiling when sourcemaps are enabledUpdated dependencies [
d54d8b7
,ae0c806
]:v4.29.1
Compare Source
Patch Changes
5020694
]:v4.29.0
Compare Source
Minor Changes
#10283
80960b9
Thanks @WillTaylorDev! - Support long branch names in generation of branch aliases in WCI.#10312
bd8223d
Thanks @devin-ai-integration! - Added--domain
flag towrangler deploy
command for deploying to custom domains. Use--domain example.com
to deploy directly to a custom domain without manually configuring routes.#8318
8cf47f9
Thanks @gnekich! - Introduce json output flag for wrangler pages deployment listPatch Changes
#10232
e7cae16
Thanks @emily-shen! - fix: validatewrangler containers delete ID
to ensure a valid ID has been provided. Previously if you provided the container name (or any non-ID shaped string) you would get an auth error instead of a 404.#10139
3b6ab8a
Thanks @dom96! - Removes mention of cf-requirements when Python Workers are enabled#10259
c58a05c
Thanks @dario-piotrowicz! - Ensure thatmaybeStartOrUpdateRemoteProxySession
considers the potential account_id from the user's wrangler configCurrently if the user has an
account_id
in their wrangler config file, such id won't be taken into consideration for the remote proxy session, the changes here make sure that it is (note that theauth
option ofmaybeStartOrUpdateRemoteProxySession
, if provided, takes precedence over this id value).The changes here also fix the same issue for
wrangler dev
andgetPlatformProxy
(since they usemaybeStartOrUpdateRemoteProxySession
under the hook).#10288
42aafa3
Thanks @tgarg-cf! - Do not attempt to update queue producer settings when deploying a Worker with a queue bindingPreviously, each deployed Worker would update a subset of the queue producer's settings for each queue binding, which could result in broken queue producers or at least conflicts where different Workers tried to set different producer settings on a shared queue.
#10242
70bd966
Thanks @devin-ai-integration! - Add experimental API to expose Wrangler command tree structure for documentation generation#10258
d391076
Thanks @nikitassharma! - Add the option to allow all tiers when creating a container#10248
422ae22
Thanks @emily-shen! - fix: re-push container images on deploy even if the only change was to the Dockerfile#10179
5d5ecd5
Thanks @pombosilva! - Prevent defining multiple workflows with the same "name" property in the same wrangler file#10232
e7cae16
Thanks @emily-shen! - include containers API calls in output of WRANGLER_LOG=debug#10243
d481901
Thanks @devin-ai-integration! - Remove async_hooks polyfill - now uses native workerd implementationThe async_hooks module is now provided natively by workerd, making the polyfill unnecessary. This improves performance and ensures better compatibility with Node.js async_hooks APIs.
#10060
9aad334
Thanks @edmundhung! - refactor: switchgetPlatformProxy()
to use Miniflare's dev registry implementationUpdated
getPlatformProxy()
to use Miniflare's dev registry instead of Wrangler's implementation. Previously, you had to start a wrangler or vite dev session before accessing the proxy bindings to connect to those workers. Now the order doesn't matter.#10219
28494f4
Thanks @dario-piotrowicz! - fixNonRetryableError
thrown with an empty error message not stopping workflow retries locallyUpdated dependencies [
1479fd0
,05c5b28
,e3d9703
,d481901
]:v4.28.1
Compare Source
Patch Changes
#10130
773cca3
Thanks @dario-piotrowicz! - updatemaybeStartOrUpdateRemoteProxySession
config argument (to allow callers to specify an environment)Before this change
maybeStartOrUpdateRemoteProxySession
could be called with either the path to a wrangler config file or the configuration of a worker. The former override however did not allow the caller to specify an environment, so themaybeStartOrUpdateRemoteProxySession
API has been updated so that in the wrangler config case an object (with the path and a potential environment) needs to be passed instead.For example, before callers could invoke the function in the following way
note that there is no way to tell the function what environment to use when parsing the wrangle configuration.
Now callers will instead call the function in the following way:
note that now a target environment can be specified.
#10130
773cca3
Thanks @dario-piotrowicz! - fixgetPlatformProxy
not taking into account the potentially specified environment for remote bindings#10122
2e8eb24
Thanks @dario-piotrowicz! - fixstartWorker
not respectingauth
options for remote bindingsfix
startWorker
currently not taking into account theauth
fieldthat can be provided as part of the
dev
options when used in conjunctionwith remote bindings
example:
Given the following
wrangler
will now use the provided<ACCOUNT_ID>
and<API_TOKEN>
to integrate withthe remote AI binding instead of requiring the user to authenticate.
#10209
93c4c26
Thanks @devin-ai-integration! - fix: strip ANSI escape codes from log files to improve readability and parsing#9774
48853a6
Thanks @nikitassharma! - Validate container configuration against account limits in wrangler to give early feedback to the user#10122
2e8eb24
Thanks @dario-piotrowicz! - fix incorrect TypeScript type for AI binding in thestartWorker
APIv4.28.0
Compare Source
Minor Changes
e82aa19
Thanks @Akshit222! - Add --json flag to r2 bucket info command for machine-readable output.Patch Changes
#10004
b4d1373
Thanks @dario-piotrowicz! - fixwrangler dev
logs being logged on the incorrect level in some casescurrently the way
wrangler dev
prints logs is faulty, for example the following codeinside a worker would cause the following logs:
(note that the warning is printed as an error and the debug log is printed even if by default it should not)
the changes here make sure that the logs are instead logged to their correct level, so for the code about the following will be logged instead:
(running
wrangler dev
with the--log-level=debug
flag will also cause the debug log to be included as well)#10099
360004d
Thanks @emily-shen! - fix: move local dev container cleanup to process exit hook. This should ensure containers are cleaned up even when Wrangler is shut down programatically.#10186
dae1377
Thanks @matthewdavidrodgers! - Deleting when Pages project binds to worker requires confirmation#10169
1655bec
Thanks @devin-ai-integration! - fix: report startup errors before workerd profiling#10136
354a001
Thanks @nikitassharma! - Updatewrangler containers images list
to make fewer API calls to improve command runtime#10157
5c3b83f
Thanks @devin-ai-integration! - Enforce 64-character limit for Workflow binding names locally to match production validation#10154
502a8e0
Thanks @devin-ai-integration! - Fix UTF BOM handling in config files - remove UTF-8 BOM and error on other BOMs#10176
07c8611
Thanks @devin-ai-integration! - Add macOS version validation to prevent EPIPE errors on unsupported macOS versions (below 13.5). Miniflare and C3 fail hard while Wrangler shows warnings but continues execution.Updated dependencies [
6b9cd5b
,631f26d
,d6ecd05
,b4d1373
,8ba7736
,07c8611
,7e204a9
,3f83ac1
]:v4.27.0
Compare Source
Minor Changes
#9914
a24c9d8
Thanks @petebacondarwin! - Add support for loading local dev vars from .env filesIf there are no
.dev.vars
or.dev.vars.<environment>
files, when running Wrangler or the Vite plugin in local development mode,they will now try to load additional local dev vars from
.env
,.env.local
,.env.<environment>
and.env.<environment>.local
files.These loaded vars are only for local development and have no effect in production to the vars in a deployed Worker.
Wrangler and Vite will continue to load
.env
files in order to configure themselves as a tool.Further details:
vite build
the local vars will be computed and stored in a.dev.vars
file next to the compiled Worker code, so thatvite preview
can use them.wrangler types
command will similarly read the.env
files (if no.dev.vars
files) in order to generate theEnv
interface.CLOUDFLARE_LOAD_DEV_VARS_FROM_DOT_ENV
environment variable is"false"
then local dev variables will not be loaded from.env
files.CLOUDFLARE_INCLUDE_PROCESS_ENV
environment variable is"true"
then all the environment variables found onprocess.env
will be included as local dev vars.--env-file=<path/to/dotenv/file>
global CLI option. This affects both loading.env
to configure Wrangler the tool as well as loading local dev vars.Patch Changes
#10051
0f7820e
Thanks @nikitassharma! - Add support for custom instance limits for containers. For example, instead ofhaving to use the preconfigured dev/standard/basic instance types, you can now
set:
This feature is currently only available to customers on an enterprise plan.
#10149
e9bb8d3
Thanks @vicb! - fixrequire("debug")
in nodejs_compat modeUpdated dependencies [
9b61f44
]:v4.26.1
Compare Source
Patch Changes
#10061
f8a80a8
Thanks @emily-shen! - feat(containers): try to automatically get the socket path that the container engine is listening on.Currently, if your container engine isn't set up to listen on
unix:///var/run/docker.sock
(or isn't symlinked to that), then you have to manually set this via thedev.containerEngine
field in your Wrangler config, or via the env varsWRANGLER_DOCKER_HOST
. This change means that we will try and get the socket of the current context automatically. This should reduce the occurrence of opaqueinternal error
s thrown by the runtime when the daemon is not listening onunix:///var/run/docker.sock
.In addition to
WRANGLER_DOCKER_HOST
,DOCKER_HOST
can now also be used to set the container engine socket address.#10048
dbdbb8c
Thanks @vicb! - pass the compatibility date and flags to the unenv preset#10096
687655f
Thanks @vicb! - bump unenv to 2.0.0-rc.19#9897
755a249
Thanks @edmundhung! - fix: wrangler types should infer the types of the default worker entrypointUpdated dependencies [
82a5b2e
,f8f7352
,2df1d06
,dbdbb8c
,5991a9c
,687655f
]:Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.